    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<% session.removeAttribute("capabilities"); %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Web Map Service to KML bridge (WMS2KML)</title>
    </head>
    <body>

    <h1>WMS to Google Earth conversion tool</h1>
    
    <p>This web application generates KML that wraps a Web Map Service (version 1.1.1 or 1.3.0),
    allowing maps to be viewed in Google Earth.  Simply enter the URL to the Capabilities
    document in the form below and press Go.</p>
    
    <form action="Cap2KML/loadCapabilities" method="POST">
        URL to Capabilities document: <input type="text" size="100" name="capurl" value="<%--http://localhost:8084/WMS2KML/wms1.3.0.xml--%>"/>
        <input type="submit" value="Go!"/>
    </form>
    
    <p>This application downloads the Capabilities document and uses the information
    therein to generate a KML file that wraps all the Layers that are served
    by the WMS.  The layer hierarchy is preserved in the folder structure of the KML.</p>
    
    <%--
    <!-- TODO: generate the URL automatically -->
    <p>You can also use this web application as a Web Service.  Simply call the url
    <tt>http://thisserver.com?http://anotherserver.com/path/to/capabilities</tt> and
    the response will be the KML document, or an error document.</p>--%>
    
    <p>More details about this application (including the code) can be found on
    the <a href="http://code.google.com/p/wms2kml/">Google Code project page</a>.</p>
    
    <p>This web application was developed by the <a href="http://www.resc.rdg.ac.uk">Reading e-Science Centre</a>.
    Please email <a href="mailto:resc@rdg.ac.uk">resc@rdg.ac.uk</a> with any questions, problems
    or suggestions.</p>
    
    </body>
</html>
